import Vue from 'vue';

import 'normalize.css/normalize.css'; // A modern alternative to CSS resets

import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';

import '@/styles/index.scss'; // global css

import App from './App';
import store from './store';
import router from './router';

import '@/permission'; // permission control
import Fragment from 'vue-fragment';
import CustomIcon from '@/components/CustomIcon';

Vue.component('custom-icon', CustomIcon);
Vue.use(Fragment.Plugin);
Vue.use(ElementUI);

Vue.config.productionTip = false;
// 设置elementUI组件默认大小
Vue.prototype.$ELEMENT = { size: 'small' };
new Vue({
  el: '#app',
  router,
  store,
  render: h => h(App)
});
